package com.wechat.back.service;

import com.wechat.back.pojo.articles.Article;
import com.wechat.back.pojo.tools.PageBean;

public interface ArticleService {
    //新增文章
    void add(Article article);

    void addToInspect(Article article);

    void addToDisAllow(Article article);

    //条件分页列表查询
    PageBean<Article> list(Integer pageNum, Integer pageSize, Integer categoryId, String state, Integer id);

    PageBean<Article> listDisallow(Integer pageNum, Integer pageSize, Integer categoryId, String state, Integer id);

    void deleteById(Integer id);
    void deleteToInspectById(Integer id);
    void deleteToDisAllowById(Integer id);

    void update(Article article);
    void updateToInspect(Article article);
    void updateToDisAllow(Article article);


    PageBean<Article> listAll(Integer pageNum, Integer pageSize, Integer categoryId, String state);
    PageBean<Article> listAllToInspect(Integer pageNum, Integer pageSize, Integer categoryId, String state);
    PageBean<Article> listAllToDisAllow(Integer pageNum, Integer pageSize, Integer categoryId, String state);

    Article findById(Integer id);
    Article findToInspectById(Integer id);
    Article findToDisAllowById(Integer id);
}
